//
//  AppModel.swift
//  Demo3
//
//  Created by Bigboss on 2025/3/5.
//

import SwiftUI

// 在AppModel中添加视图状态管理
enum AppViewState {
    case park
    case distributionRoom
}

/// Maintains app-wide state
@MainActor
@Observable
class AppModel: ObservableObject {
    var currentTestView: AppViewState = .park
    

    let immersiveSpaceID = "ImmersiveSpace"
    enum ImmersiveSpaceState {
        case closed
        case inTransition
        case open
    }
    var immersiveSpaceState = ImmersiveSpaceState.open
    var isImmersiveActive = false
}
